package com.baosight.risk.service.riim.entity;

import com.baosight.risk.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import javax.persistence.*;

import io.swagger.models.auth.In;
import lombok.Data;

/**
 * Table: T_RIIM_RISK_GOAL_DETAIL
 */
@Data
@ApiModel
@Table(name = "T_RIIM_RISK_GOAL_DETAIL")
public class RiimRiskGoalDetail extends BaseEntity {

    /**
     * 重点风险ID
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险ID")
    @Column(name = "IMPORT_GUID")
    private String importGuid;

    /**
     * 风险ID
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    RISK_ID
     * Nullable:  true
     */
    @ApiModelProperty("风险ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 重点风险实施方案项目目标ID
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    GOAL_ID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险实施方案项目目标ID")
    @Column(name = "GOAL_ID")
    private String goalId;

    /**
     * 指标编号
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    TARGET_NO
     * Nullable:  true
     */
    @ApiModelProperty("指标编号")
    @Column(name = "TARGET_NO")
    private String targetNo;

    /**
     * 指标
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    TARGET_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标")
    @Column(name = "TARGET_NAME")
    private String targetName;

    /**
     * 范围上限
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    MAX_LIMIT
     * Nullable:  true
     */
    @ApiModelProperty("范围上限")
    @Column(name = "MAX_LIMIT")
    private BigDecimal maxLimit;

    /**
     * 范围下限
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    MIN_LIMIT
     * Nullable:  true
     */
    @ApiModelProperty("范围下限")
    @Column(name = "MIN_LIMIT")
    private BigDecimal minLimit;

    /**
     * 范围上限符号
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    MAX_LIMIT_MARK
     * Nullable:  true
     */
    @ApiModelProperty("范围上限符号")
    @Column(name = "MAX_LIMIT_MARK")
    private String maxLimitMark;

    /**
     * 范围下限符号
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    MIN_LIMIT_MARK
     * Nullable:  true
     */
    @ApiModelProperty("范围下限符号")
    @Column(name = "MIN_LIMIT_MARK")
    private String minLimitMark;

    /**
     * 范围下限符号
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("单位编码")
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 范围下限符号
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("单位名称")
    @Column(name = "COMP_NAME")
    private String compName;
    /**
     * 指标单位
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    UNIT
     * Nullable:  true
     */
    @ApiModelProperty("指标单位")
    @Column(name = "UNIT")
    private String unit;

    /**
     * 排序
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
    private Integer rowOrder;

    /**
     * 类型标记：年/一/二/三/四===0/1/2/3/4
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    TYPE_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("类型标记")
    @Column(name = "TYPE_FLAG")
    private String typeFlag;

    /**
     * 目标值
     * <p>
     * Table:     T_RIIM_RISK_GOAL_DETAIL
     * Column:    TARGET_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("目标值")
    @Column(name = "TARGET_VALUE")
    private String targetValue;

    private static final long serialVersionUID = 1L;
}